/**
 * Copyright (c) suzuki ryoutoku
 * See this code regarding the Apache License Version 2.0
 * @author suzuki ryoutoku
 */
//=============================================================================
//	Protected multiple include file
//=============================================================================
#ifndef CALLBACK_H
#define CALLBACK_H

//=============================================================================
//	Declare function
//=============================================================================
// callback of menu items
void cb_menuitem_response(gchar* string);

// callback of menu line
void cb_menu_line_toggled(GtkCheckMenuItem *checkmenuitem);

// callback of scaling dialog
void cb_scaling(GtkScale* scale, gpointer data);

// callback of activate tree view
gboolean cb_tree_item_double_clicked(GtkTreeView *treeview,
									 GtkTreePath *path,
									 GtkTreeViewColumn* column,
									 gpointer data);

// callback of tree view
void cb_status_toggled(GtkCellRendererToggle *renderer ,
					   gchar *path_string ,
					   gpointer user_data);

// callback of main window resize event
void cb_size_allocate(GtkWidget *,
					  gpointer,
					  gpointer);

// callback of mouse event
gboolean cb_button_press_event(GtkWidget* widget, 
							   GdkEventButton* event, 
							   gpointer data);
// callback of mouse event
gboolean cb_motion_notify_event(GtkWidget         *widget,
                                GdkEventMotion      *event);

// callback of keybord event
gboolean cb_key_press_event(GtkWidget *widget,
							GdkEventKey *event);
// callback of keybord event
gboolean cb_key_release_event(GtkWidget *widget,
							  GdkEventKey *event);

// callback of mouse scroll
gboolean cb_scroll_event(GtkWidget *widget,
						 GdkEventScroll *event);


// test function...
void select_list(GtkTreeView *treeview);

// callback in set forcus event
gboolean cb_focus_in_event(GtkWidget *,
						   GdkEvent *,
						   gpointer);

// callback of toggle fps
void cb_menu_fps_toggled(GtkCheckMenuItem *checkmenuitem);

void cb_menu_toggle_select(GtkCheckMenuItem *checkmenuitem);

//=============================================================================
//	Protected multiple include file
//=============================================================================
#endif
